//
//  ZJProductCell.m
//  Lottery
//
//  Created by ZJ on 2018/8/16.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ZJProductCell.h"

@interface ZJProductCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation ZJProductCell

- (void)setProduct:(ZJProduct *)product {
    _product = product;
    
    // 处理圆角
    self.iconImageView.layer.cornerRadius = 10;
    self.iconImageView.layer.masksToBounds = YES;
    
    // 把数据放在对应的控件上
    self.iconImageView.image = [UIImage imageNamed:product.icon];
    self.titleLabel.text = product.title;
}

@end
